package cn.iocoder.yudao.module.api.brokerage.user.enums;

import cn.iocoder.yudao.framework.business.basic.enums.EnumValuable;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 会员类型的推广人员等级权重
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/01/09
 */
@RequiredArgsConstructor
@Getter
public enum BrokerageLevelWeightEnum implements EnumValuable {
    NONE(0, "无"),
    ;

    @EnumValue
    private final Integer value;
    private final String name;

    public static BrokerageLevelWeightEnum valueOf(Integer value) {
        for (BrokerageLevelWeightEnum item : values()) {
            if (item.getValue().equals(value)) {
                return item;
            }
        }
        return NONE;
    }

}
